package com.zynn.common.pojo.dto.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户关注关系DTO
 *
 * @author 涂炜
 * @date 2018年7月4日11:18:57
 */
@Data
public class UserAttentionRelationDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 关注人用户的id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long attentionUserId;

    /**
     * 被关注人的用户id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long beAttentionUserId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
